﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NGourd.Core.Runners;

namespace NGourd.CLI
{
    class OptionConfigurationTweak : IConfigurationTweak
    {
        public readonly string Value;
        private readonly Option Option;

        public OptionConfigurationTweak(Option option, string value)
        {
            Option = option;
            Value = value;
        }

        public void ApplyTo(Configuration config)
        {
            Option.ApplyAction(config, Value);
        }
    }
}
